-- GENERATED SPELL FOR [Leviathan Defense Turret] --


function spell0_33142(pUnit, Event) --@Searing Flame,n/a--
pUnit:FullCastSpellOnTarget(62402,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33142', 500, 1)
end

function Sorts_33142(pUnit, Event)
local choix_sorts_33142 = math.random(0, 0)
if choix_sorts_33142 == 0 then
pUnit:RegisterEvent('spell0_33142', 1, 1)
end
end

function mob33142_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33142', math.random(1500, 3000), 1)
end

function mob33142_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33142_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33142_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33142, 1, 'mob33142_Action')
RegisterUnitEvent(33142, 2, 'mob33142_Leave')
RegisterUnitEvent(33142, 3, 'mob33142_Kill')
RegisterUnitEvent(33142, 4, 'mob33142_Die')
